require "pubenum"

--桌子的状态
ETableState = {
	TABLE_STATE_UNKNOW = 0,
	TABLE_STATE_GAME_START = 1,        --游戏开始状态
	TABLE_STATE_WAIT_PLAYER_SITDOWN = 2, --等待玩家坐下
	TABLE_STATE_WAIT_ALL_READY = 3,			--等待所有玩家准备
	TABLE_STATE_ONE_GAME_START = 4,    --一局游戏开始
	TABLE_STATE_WAIT_START_COUNT_DOWN = 5,  --等待倒计时
	TABLE_STATE_WAIT_COUNT_DOWN = 6,   --开始倒计时
	TABLE_STATE_WAIT_PLAYER_JDZ = 7, -- 等待玩家叫地主
	TABLE_STATE_WAIT_PLAYER_QDZ = 8, -- 等待玩家抢地主
	TABLE_STATE_WAIT_PLAYER_CHUPAI = 9,     --等待出牌
	TABLE_STATE_CONTINUE = 10,
	TABLE_STATE_WAIT_ONE_GAME_REAL_END = 11, --等待一局游戏真正结束
	TABLE_STATE_ONE_GAME_END = 12,      --一局游戏结束
	TABLE_STATE_ONE_GAME_END_AFTER = 13, ----展示出牌牌型动画
	TABLE_STATE_ONE_GAME_REAL_END = 14, --一局游戏真正结束
	TABLE_STATE_WAIT_CLIENT_ACTION = 15, --等待客户端操作
	TABLE_STATE_WAIT_PLAYER_DOUBLE = 16, --等待玩家加倍
	TABLE_STATE_WAIT_PLAYER_MINGPAI = 17,
	TABLE_STATE_PLAYER_JDZ = 18,	-- 玩家叫地主
}

--座位状态
ESeatState = {
	SEAT_STATE_UNKNOW = 0,
	SEAT_STATE_NO_PLAYER = 1,  	-- 没有玩家
	SEAT_STATE_WAIT_READY = 2,  -- 等待玩家准备
	SEAT_STATE_WAIT_START = 3, 	-- 等待开局
	SEAT_STATE_STANDUP = 4,    	-- 站起
	SEAT_STATE_ESCAPE = 5, 		-- 逃跑
	SEAT_STATE_PLAYING = 6,   	-- 正在游戏中
	SEAT_STATE_WATCHING = 7, 	-- 中途进入的直接观战
	SEAT_STATE_CHECK = 8,		-- 过牌
	SEAT_STATE_CHUPAI = 9,		-- 出牌
	SEAT_STATE_FOLLOW_CHUPAI = 10,	--跟牌
	SEAT_STATE_JDZ = 11,		-- 叫地主
	SEAT_STATE_QIANGDZ = 12,	-- 抢地主
	SEAT_STATE_NOT_JDZ = 13, 	-- 不叫地主
	SEAT_STATE_NOT_QIANGDZ = 14,-- 不抢地主
	SEAT_STATE_TUOGUAN = 15,	-- 托管状态
	SEAT_STATE_DO_DOUBLE = 16,	-- 加倍
}

--玩家操作类型
EActionType = {
	ACTION_TYPE_UNKNOW = 0,
	ACTION_TYPE_MINGPAI = 1,    	-- 明牌
	ACTION_TYPE_JIAODIZHU = 2,  	-- 叫地主
	ACTION_TYPE_QIANGDIZHU = 3,		-- 抢地主
	ACTION_TYPE_CHUPAI = 4,    		-- 出牌
	ACTION_TYPE_FOLLOW_CHUPAI = 5, 	-- 跟牌
	ACTION_TYPE_CHECK = 6,			-- 让牌 
	ACTION_TYPE_BUJIAO_DIZHU = 7,	-- 不叫地主
	ACTION_TYPE_BUQIANGDIZHU = 8,	-- 不抢地主
	ACTION_TYPE_REQUEST_TUOGUAN = 9,-- 玩家请求托管
	ACTION_TYPE_CANCEL_TUOGUAN = 10,-- 玩家取消托管
	ACTION_TYPE_DODOUBLE = 11,		-- 加倍
}

--斗地主牌类型
ECardType = {
	DDZ_CARD_TYPE_UNKNOWN 				= 0,
	DDZ_CARD_TYPE_SINGLE 				= 1, 	---单张
	DDZ_CARD_TYPE_PAIR	 				= 2, 	---对子
	DDZ_CARD_TYPE_THREE 				= 3, 	---三张
	DDZ_CARD_TYPE_BOMB					= 4, 	---炸弹
	DDZ_CARD_TYPE_ROCKET				= 5, 	---火箭(王炸)
	DDZ_CARD_TYPE_ONE_STRAIGHT 			= 6, 	---单顺
	DDZ_CARD_TYPE_TWO_STRAIGHT 			= 7, 	---连对
	DDZ_CARD_TYPE_THREE_STRAIGHT		= 8, 	---三顺
	DDZ_CARD_TYPE_THREE_ONE				= 9, 	---三带一
	DDZ_CARD_TYPE_THREE_PAIR 			= 10,   ---三带二
	DDZ_CARD_TYPE_THREE_WING_ONE 		= 11,  	---飞机带翅膀(单)
	DDZ_CARD_TYPE_THREE_WING_PAIR 		= 12, 	--- 飞机带翅膀(双)
	DDZ_CARD_TYPE_FOUR_TWO_ONE 			= 13,  	--- 四带二张
	DDZ_CARD_TYPE_FOUR_TWO_PAIR 		= 14, 	--- 四代两对
	DDZ_CARD_TYPE_TIANBOMB    			= 15,   --- 天炸弹
	DDZ_CARD_TYPE_MIXBOMB				= 16,	--- 赖子炸弹
	DDZ_CARD_TYPE_SOFTBOMB    			= 17,   --- 软炸弹

	DDZ_CARD_TYPE_MIXBOMB_5	    		= 161,  --- 5赖子炸弹
	DDZ_CARD_TYPE_MIXBOMB_6	    		= 162,  --- 6赖子炸弹
	DDZ_CARD_TYPE_MIXBOMB_7	    		= 163,  --- 7赖子炸弹
	DDZ_CARD_TYPE_MIXBOMB_8	    		= 164,  --- 8赖子炸弹
	
	DDZ_CARD_TYPE_SOFTBOMB_5    		= 171,  --- 5软炸弹
	DDZ_CARD_TYPE_SOFTBOMB_6    		= 172,  --- 6软炸弹
	DDZ_CARD_TYPE_SOFTBOMB_7    		= 173,  --- 7软炸弹
	DDZ_CARD_TYPE_SOFTBOMB_8    		= 174,  --- 8软炸弹
	DDZ_CARD_TYPE_SOFTBOMB_9    		= 175,  --- 9软炸弹
	DDZ_CARD_TYPE_SOFTBOMB_10    		= 176,  --- 10软炸弹
	DDZ_CARD_TYPE_SOFTBOMB_11    		= 177,  --- 11软炸弹
	DDZ_CARD_TYPE_SOFTBOMB_12    		= 178,  --- 12软炸弹
}

ECardsPowerCardType = {
	ECardType.DDZ_CARD_TYPE_PAIR,
	ECardType.DDZ_CARD_TYPE_SINGLE
}

ECardsFollowCard = {
	ECardType.DDZ_CARD_TYPE_ROCKET,
	ECardType.DDZ_CARD_TYPE_ONE_STRAIGHT,
	ECardType.DDZ_CARD_TYPE_PAIR,
	ECardType.DDZ_CARD_TYPE_SINGLE,
	ECardType.DDZ_CARD_TYPE_THREE,
}

EPlayerIDType = {
	DDZ_PLAYER_ID_TYPE_UNKNOW = 0,	---不明标识
	DDZ_PLAYER_ID_TYPE_DIZHU = 1,  ---身份地主
	DDZ_PLAYER_ID_TYPE_FARMER = 2, ---身份农民
}

EDelayTimeCardType = {
	COMMON_CARDTYPE = 100,
	COMMON_CHUNTIAN = 500,
	DDZ_CARD_TYPE_BOMB = 120,
	DDZ_CARD_TYPE_ROCKET = 120,
	DDZ_CARD_TYPE_THREE_STRAIGHT = 220, ---三顺
	DDZ_CARD_TYPE_THREE_WING_ONE = 220,  ---飞机带翅膀(单)
	DDZ_CARD_TYPE_THREE_WING_PAIR = 220, --- 飞机带翅膀(双)
	DDZ_CARD_TYPE_FOUR_TWO_ONE = 220,  --- 四带二张
	DDZ_CARD_TYPE_FOUR_TWO_PAIR = 220, --- 四代两对
	DDZ_CARD_TYPE_FOUR_TWO_THREE = 220, --- 四代三张
	DDZ_CARD_TYPE_ONE_STRAIGHT = 220, ---单顺
	DDZ_CARD_TYPE_TWO_STRAIGHT = 220, ---连对
}

--房间类型
ERoomType = {
	ROOM_TYPE_UNKNOW = 0,
	ROOM_TYPE_COMMON = 1, 		--自建钻石
	ROOM_TYPE_FRIEND = 2,		--自建房卡
	ROOM_TYPE_COIN   = 3,		--金币桌
	ROOM_TYPE_SYSTEM = 4,		--系统桌
}

--游戏类型
EGameType = {
	GAME_TYPE_UNKNOW = 0,		-- 未知
	GAME_TYPE_NORMAL = 1, 		-- 普通
	GAME_TYPE_LAIZI = 2, 		-- 赖子
	GAME_TYPE_TDLAIZI = 3, 		-- 天地赖子
	GAME_TYPE_NORMAL_NORIFFLE = 4,	-- 普通不洗牌
}

--匹配场类型
EMatchType ={
    MATCH_TYPE_PRIMARY = 1,     --初级场
    MATCH_TYPE_MEDIUM = 2,      --中级场
    MATCH_TYPE_ADVANCE = 3,     --高级场
}